<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/common.jsp"%>
<!DOCTYPE html>
<html lang="zh">
<meta charset="utf-8">
<head></head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-taxpayer-edit">
			<input id="taxpayerId" name="taxpayerId" value="${taxpayer.taxpayerId }" type="hidden">
			<input id="taskId" name="taskId" value="${taskId}" type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label">纳税人识别号</label>
				<div class="col-sm-8">
					<input readonly="readonly" id="taxpayerNumber" name="taxpayerNumber" value="${taxpayer.taxpayerNumber }" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">纳税人名称</label>
				<div class="col-sm-8">
					<input readonly="readonly" id="taxpayerName" name="taxpayerName" value="${taxpayer.taxpayerName }" class="form-control" type="text">
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-3 control-label">公司名称</label>
				<div class="col-sm-8">
					<input readonly="readonly" id="taxpayerCompanyName" name="taxpayerCompanyName" value="${taxpayer.taxpayerCompanyName }" class="form-control"
						type="text">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">公司地址</label>
				<div class="col-sm-8">
					<input readonly="readonly" id="taxpayerAddress" name="taxpayerAddress" value="${taxpayer.taxpayerAddress }" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">电话</label>
				<div class="col-sm-8">
					<input readonly="readonly" id="taxpayerTel" name="taxpayerTel" value="${taxpayer.taxpayerTel }" class="form-control" type="text">
				</div>
			</div>
			 

			<div class="form-group">
				<label class="col-sm-3 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<select id="flag" name="flag" class="form-control">
						<option value="true">通过</option>
						<option value="false">不通过</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">&nbsp;</label>
				<div class="col-sm-8">
					<a class="btn btn-primary btn-del" onclick="submitHandler()">
						<i class="fa fa-play"></i>
						提交审核
					</a>
				</div>
			</div>

		</form>
	</div>
	<script type="text/javascript">
		var prefix = "${ctx}/system/taxpayer"

		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/complete", $('#form-taxpayer-edit').serialize(), function(data) {
					if (data.code == 0) {
						alert(data.msg);
						window.location.href = '${ctx}/toDoTask/list/taxpayer';
					}
				});
			}
		}
	</script>
</body>
</html>
